import request from '@/utils/request'
export function addImg(img) {
    //type=image
    return request({
        url: '/wx/add/img',
        method: 'post',
        data: {img}
    })
}
export function addProduct(coverImgUrl  ,name ,price,price2 ,priceType ,url ) {
    return request({
        url: '/wx/add/product',
        method: 'post',
        params: {coverImgUrl  ,name ,price,price2 ,priceType ,url }
    })
}
export function productList(offset,limit,status) {
    return request({
        url: '/wx/list/product',
        method: 'get',
        params: {offset,limit,status}
    })
}
export function productDel(goodsId) {
    return request({
        url: '/wx/del/product',
        method: 'post',
        params: {goodsId}
    })
}